package com.cucumber;

import cucumber.api.PendingException;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;

/**
 * Created by ljl on 17-9-5.
 */
public class MyStepdefs {
    PageNum pagenum;
    @Given("^I am on the (\\d+) page$")
    public void i_am_on_the_page(int arg1) throws Throwable {
//        pagenum = new PageNum();
//        pagenum.getNum(arg1);
        System.out.println("page f "+arg1);
//        throw new PendingException();
    }

    @Given("^I click the next (\\d+) button$")
    public void i_click_the_next_button(int arg1) throws Throwable {
        System.out.println("button "+arg1);
//        throw new PendingException();
    }

    @Then("^I should go to the (\\d+) finish page$")
    public void i_should_go_to_the_finish_page(int arg1) throws Throwable {
        System.out.println("finish ");
//        throw new PendingException();
    }
}
